@extends('web.layouts.app')

@section('title', trans('seo.my_account.title'))

@section('dialog')
    <div class="Validation-information" style="display: none">
<!--验证手机  -->	
		<div class="user-account-setting-form postionFixed m_setPhoneNumber">
			<div class="backIcon"><img src="{{ asset('resources/web/images/back-icon.png') }}"></div>
			<form class="form-validation" id="formPhone" method="post" action="{{ $user->phone_number_verified == 0 ? action('UserCenter\UserCenterController@setPhoneNumber'):action('UserCenter\UserCenterController@unBindPhoneNumber') }}">
			{{ csrf_field() }}
				<h2>验证手机</h2>
				<label style="color:red;display:none;" class="error_label"></label>
				<dl>
					<dt>手机号码</dt>
					<dd><input class="txt" type="tel" id="phone_number" name="phone_number" data-rule-required="true" data-rule-pattern="0?(13|14|15|18)[0-9]{9}"
                               data-msg-pattern="手机号码格式不正确,或者号段不支持"></dd>
				</dl>
				<dl>
					<dt>验证码</dt>
					<dd>
						<input class="captcha-txt" name="captcha" type="text"  data-rule-required ="true">
						<input class="captcha-btn" id="sendPhoneCode" type="button" value="获取验证码(60)" data-send-url="{{ action('UserCenter\UserCenterController@sendPhoneCode') }}" data-time="60">
					</dd>
				</dl>
				<button type="submit" class="submit-btn">完 成</button>
			</form>
		</div>
<!--验证手机 / -->
<!--验证手机  -->	
		<div class="user-account-setting-form postionFixed d-unbindbankcard">
			<div class="backIcon"><img src="{{ asset('resources/web/images/back-icon.png') }}"></div>
			<form class="form-validation" id="formubc" method="post" action="{{ action('UserCenter\UserCenterController@unbindingBankCardAdvance') }}">
			{{ csrf_field() }}
				<h2>解绑银行卡 </h2>
				<label style="color:red;display:none;" class="error_label"></label>
				<dl>
					<dt>验证码</dt>
					<dd>
						<input class="captcha-txt" name="valid_code" type="text"  data-rule-required ="true">
						<input class="captcha-btn" id="sendUnBindingBankCardCode" type="button" value="获取验证码" data-send-url="{{ action('UserCenter\UserCenterController@unbindingBankCard') }}" data-time="60">
					</dd>
				</dl>	
				<button type="submit" class="submit-btn">完 成</button>
			</form>
		</div>
<!--验证手机 / -->
		<div class="user-account-setting-form postionFixed m-email">
			<div class="backIcon"><img src="{{ asset('resources/web/images/back-icon.png') }}"></div>
			<form class="form-validation" method="post" action="{{ action('UserCenter\UserCenterController@sendEmailLink') }}">
			{{ csrf_field() }}
				<h2>绑定邮箱</h2>
				<label style="color:red;display:none;" class="error_label"></label>
				<dl>
					<dt>邮箱地址</dt>
					<dd><input class="txt" type="text" data-rule-required="true" name="email" id="sendEmail" placeholder="请填写邮箱地址" data-rule-remote="{{ action('Utils\UtilsController@userEmailExists') }}" data-rule-pattern="\w[-\w.+]*@([A-Za-z0-9][-A-Za-z0-9]+\.)+[A-Za-z]{2,14}"
                               data-msg-pattern="邮箱格式不正确" data-msg-remote="该邮箱已经被注册"></dd>
				</dl>
				<button type="submit" class="submit-btn">去验证</button>
			</form>
		</div>
<!-- 实名认证 -->
		<div class="user-account-setting-form postionFixed m_setName">
			<div class="backIcon"><img src="{{ asset('resources/web/images/back-icon.png') }}"></div>
			<form class="form-validation"  action="{{ action('UserCenter\UserCenterController@setName') }}" method="post">
			{{ csrf_field() }}
				<h2>实名认证</h2>
				<label style="color:red;display:none;" class="error_label"></label> 
				<dl>
					<dt>真实姓名</dt>
					<dd><input class="txt" type="text" name = "name"  placeholder="真实姓名" data-rule-required="true" 
                               data-msg-required="必须填写用户姓名"
                               data-rule-pattern="[\u4E00-\u9FA5]{2,5}(?:·[\u4E00-\u9FA5]{2,5})*"
                               data-msg-pattern="用户姓名不合法"></dd>
				</dl>
				<dl>
					<dt>身份证号码</dt>
					<dd><input class="txt" type="text" name="id_card"  placeholder="请填写用户身份证号码"
                               data-rule-id_card="true" data-rule-required="true" data-msg-required="必须填写用户身份证信息"></dd>
				</dl>
				<button type="submit" class="submit-btn">完 成</button>
			</form>
		</div>
<!-- 实名认证/ -->
<!-- 登录密码 -->
		<div class="user-account-setting-form postionFixed m_password">
			<div class="backIcon"><img src="{{ asset('resources/web/images/back-icon.png') }}"></div>
			<form class="form-validation" method="post" action="{{ action('UserCenter\UserCenterController@modifyPassword') }}">
			{{ csrf_field() }}
				<h2>修改登录密码</h2>
				<label style="color:red;display:none;" class="error_label"></label>
				<dl>
					<dt>原密码</dt>
					<dd><input class="txt" type="password" name="old_password" data-rule-required="true" data-msg-required="请输入您的原密码"  data-rule-minLength="6" data-rule-maxLenght="18"></dd>
				</dl>
				<dl>
					<dt>新密码</dt>
					<dd><input class="txt" type="password" name="new_password"  data-rule-required="true" data-msg-required="请输入您的新密码" data-rule-minLength="6" data-rule-maxLenght="18" id="password"></dd>
				</dl>
				<dl>
					<dt>确认密码</dt>
					<dd><input class="txt" type="password" name="repeat_password"  data-rule-required="true" data-msg-required="请确认您的新密码"  data-rule-minLength="6" data-rule-maxLenght="18" data-rule-equalTo="#password" data-msg-equalTo="您的密码确认不一致"></dd>
				</dl>
				<button type="submit" class="submit-btn" id="subitModifyPwd">确 认</button>
			</form>
		</div>
<!-- 登录密码/ -->
<!-- 支付密码 -->
		<div class="user-account-setting-form postionFixed">
			<div class="backIcon"><img src="{{asset('resources/web/images/back-icon.png')}}"></div>
			<form>
				<h2>修改支付密码</h2>
				<dl>
					<dt>原密码</dt>
					<dd><input class="txt" type="password"></dd>
				</dl>
				<dl>
					<dt>新密码</dt>
					<dd><input class="txt" type="password"></dd>
				</dl>
				<dl>
					<dt>确认密码</dt>
					<dd><input class="txt" type="password"></dd>
				</dl>	
				<button type="button" class="submit-btn">确 认</button>
			</form>
		</div>
<!-- 支付密码/ -->
		<!-- 投资项目，选择红包 -->
</div>
@endsection